/**
 * Copyright (C) 2011-20077
 * 设计：		Zhangsk
 * 创建时间：	2011-11-27
 * Flash视频会议核心库 加载器管理类
 *
 * 
 */

package com.treemon.meetingcore.session
{
	import flash.events.EventDispatcher;
	import flash.utils.*;

	public class LoaderManager extends EventDispatcher
	{
			
		static public function Add(AClassName: String): void
		{
			trace("LoaderfManage.Add()" + AClassName);
			_array.push(AClassName);
		}
		
		static public function SetUp(a: MeetingSession): void
		{
			//var s: Class = getDefinitionByName(_className) as Class;
			var s: Class;
			var obj: EventDispatcher;
			//var obj: VideoControl = new s(a) as VideoControl;
			for (var b:String in _array){
				trace(_array[b]);
				s = getDefinitionByName(_array[b]) as Class;
				obj = new s(a) as EventDispatcher;
			}
		}
		
		static private var _array: Array = new Array();
		
		
			
	}
}